home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Caml Light 0.61 / Source / src / runtime / minor_gc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-24  |  498 b   |  29 lines  |  [TEXT/MPS ]

  1. #ifndef _minor_gc_
  2. #define _minor_gc_
  3.  
  4.  
  5. #include "misc.h"
  6.  
  7. extern char *young_start, *young_ptr, *young_end;
  8. extern value **ref_table_ptr, **ref_table_end;
  9.  
  10. #define Is_young(val) \
  11.   ((addr)(val) > (addr)young_start && (addr)(val) < (addr)young_end)
  12.  
  13. #ifdef ANSI
  14.  
  15. extern void init_minor_heap (asize_t);
  16. extern void minor_collection (void);
  17. extern void realloc_ref_table (void);
  18.  
  19. #else
  20.  
  21. void init_minor_heap ();
  22. void minor_collection ();
  23. void realloc_ref_table ();
  24.  
  25. #endif
  26.  
  27.  
  28. #endif /* _minor_gc_ */
  29.